
#include <stdio.h>

extern int g_barrier;
extern int g_count;

void * thread_func(void *arg)
{
    printf("Thread is created!\n");
    while(g_barrier == 0)
    {
        g_count++;
    }
    
    printf("Thread is released!\n");
    

    

    return (void*)0;
}